﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessObjects.BO_GetObjects;
using System.Data;

public partial class Controls_Ads : Base_Controls
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            base.PSize =16;
            this.Dislpay();
            loadMenuDong();
        }

    }
    private void Dislpay()
    {
        base.bindRepeater(rptGallery, BO_portal_articles.SelectWithPagedWidthCid(base.Cur_page,Convert.ToInt32(Request["category_id"]), base.PSize,1), pagerContainer);
    }
    //menu dong
    public void loadMenuDong()
    {
        DataTable dt = BO_portal_articles.LoadMenuDong();
        rptMenu.DataSource = dt;
        rptMenu.DataBind();
    }
}